WooCommerce\Square\Settings C

Total Complexity 109
Dependencies 5
Dependents 3
Total lines 1,043
Lines of code 471
Logical lines of code 205
Comment lines 365
Methods 37
Properties 4

Methods 37

Method Rating Maintainability Complexity Lines of code
init_form_fields()
A
29 6 161
get_form_fields()
A
48 14 30
get_locations()
A
48 13 31
get_access_token()
S
55 7 19
get_refresh_token()
S
55 6 19
update_access_token()
S
55 5 19
maybe_change_sync_interval()
S
61 5 12
generate_import_products_html()
S
55 4 20
update_refresh_token()
S
57 4 17
get_location_id()
S
63 4 10
get_environment()
S
73 4 4
get_system_of_record_name()
S
60 3 14
__construct()
S
55 2 20
generate_connect_html()
S
57 2 20
is_admin_settings_screen()
S
76 3 3
is_inventory_sync_enabled()
S
76 3 3
is_system_of_record_disabled()
S
75 2 4
is_configured()
S
79 2 3
get_sync_interval()
S
70 2 5
init()
S
78 1 4
get_access_tokens()
S
79 1 3
is_override_product_images_enabled()
S
78 1 3
get_plugin()
S
82 1 3
is_product_sync_enabled()
S
80 1 3
is_sandbox_setting_enabled()
S
80 1 3
get_enable_sandbox()
S
80 1 3
get_refresh_tokens()
S
79 1 3
clear_refresh_tokens()
S
81 1 3
is_connected()
S
80 1 3
clear_access_tokens()
S
81 1 3
clear_location_id()
S
72 1 5
hide_missing_square_products()
S
79 1 3
is_system_of_record_woocommerce()
S
79 1 3
is_system_of_record_square()
S
79 1 3
is_debug_enabled()
S
79 1 3
is_sandbox()
S
80 1 3
get_system_of_record()
S
80 1 3